home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / util / moni / Scout-src.lha / source / objects / scout_customclasses.c < prev    next >
Encoding:
C/C++ Source or Header  |  2002-02-13  |  1.1 KB  |  45 lines

  1. #include "system_headers.h"
  2.  
  3. struct MUI_CustomClass *FontDisplayClass = NULL;
  4.  
  5. #if 0
  6. #include <libraries/locale.h>
  7. #include <proto/locale.h>
  8.  
  9. void dummyfunc(void)
  10. {
  11.     struct Library *LocaleBase;
  12.  
  13.     if (LocaleBase = OpenLibrary("locale.library", 38)) {
  14.         struct Catalog *cat;
  15.  
  16.         if (cat = OpenCatalog(NULL, "sys/system.catalog", TAG_DONE)) {
  17.             struct Catalog *c;
  18.  
  19.             for (c = cat; c->cat_Link.ln_Pred; c = (struct Catalog *)c->cat_Link.ln_Pred);
  20.             for (c = (struct Catalog *)c->cat_Link.ln_Succ; c->cat_Link.ln_Succ; c = (struct Catalog *)c->cat_Link.ln_Succ) {
  21.                 Printf("%-20s %-10s %ld.%ld\n", c->cat_Link.ln_Name, c->cat_Language, c->cat_Version, c->cat_Revision);
  22.             }
  23.  
  24.             CloseCatalog(cat);
  25.         }
  26.  
  27.         CloseLibrary(LocaleBase);
  28.     }
  29. }
  30. #endif
  31.  
  32. BOOL CreateCustomClasses( void )
  33. {
  34.     if (!(FontDisplayClass = MUI_CreateCustomClass(NULL, MUIC_Area, NULL, sizeof(struct FontDisplayData), FontDisplayDispatcher))) return FALSE;
  35.  
  36.     // dummyfunc();
  37.  
  38.     return TRUE;
  39. }
  40.  
  41. void DeleteCustomClasses( void )
  42. {
  43.     if (FontDisplayClass) MUI_DeleteCustomClass(FontDisplayClass);
  44. }
  45.